use std::mem;
struct ZeroSizedType;

struct ZeroSizedTypeWithFields {
    foo: ZeroSizedType,
    qux: (),
    baz: [u8;0]
}

fn main() {
    println!("H");
}

#[test]
fn test_zero_sized() {
    assert_eq!(0, mem::size_of::<ZeroSizedType>());
    assert_eq!(0, mem::size_of::<ZeroSizedTypeWithFields>());
}
